import request from '@/utils/request'

// 查询汽车列表
export function listList(query) {
    return request({
        url: '/car/list/list',
        method: 'get',
        params: query
    })
}

// 查询汽车详细
export function getList(carId) {
    return request({
        url: '/car/list/' + carId,
        method: 'get'
    })
}

// 新增汽车
export function addList(data) {
    return request({
        url: '/car/list',
        method: 'post',
        data: data
    })
}

// 修改汽车
export function updateList(data) {
    return request({
        url: '/car/list',
        method: 'put',
        data: data
    })
}

// 删除汽车
export function delList(carId) {
    return request({
        url: '/car/list/' + carId,
        method: 'delete'
    })
}
